//
//  BFShOrderModel.m
//  BeautyFood
//
//  Created by apple on 2020/5/5.
//  Copyright © 2020 stoneobs. All rights reserved.
//

#import "BFShOrderModel.h"

@implementation BFShOrderModel
+ (NSDictionary *)mj_replacedKeyFromPropertyName{
    return @{@"o_id":@"id"};
}
+ (NSDictionary *)mj_objectClassInArray{
    return @{@"details":@"BFShOrderModelGoodsModel"};
}
- (BOOL)can_cancle{
    if (self.status.intValue == 0) {
        return YES;
    }
    return NO;
}

- (NSString *)cus_deal_status_string{
//订单状态筛选 订单状态 -1 => 订单已取消 0=>代付款 1=>已付款(代发货) 2 => 待收货(已发货) 3 => 已收货完成订单) 4 => 退款中 5=>已退款
    if (self.status.intValue == -2) {
        return @"已删除";//本地
    }
    
    if (self.status.intValue == -1) {
        return @"已取消";
    }
    if (self.status.intValue == 0) {
        return @"待付款";
    }
    if (self.status.intValue == 1) {
        return @"待发货";
    }
    if (self.status.intValue == 2) {
        return @"待收货";
    }
    if (self.status.intValue == 3) {
        return @"已完成";
    }
    if (self.status.intValue == 6) {
        return @"售后中";
    }
    return @"";
}
@end
@implementation BFShOrderModelGoodsModel
+ (NSDictionary *)mj_replacedKeyFromPropertyName{
    return @{@"g_id":@"id"};
}

@end
@implementation BFShOrderModelShopModel

@end

